package com.wanxi.dao;

import com.wanxi.model.NavModel;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Li
 * @Date 2023/4/27 11:47
 */
public class NavDao {
    public List<NavModel> getNav() {
        String[] hrefs = {"/FirmIndex","/about","/field"};
        String[] names = {"网站首页","关于我们","服务领域"};
         List<NavModel> list = new ArrayList<NavModel>();
        for (int i = 0; i < hrefs.length; i++) {
            list.add(NavModel.builder()
                    .href(hrefs[i])
                    .name(names[i])
                    .build());
        }
        return list;
    }

    public List<NavModel> getNav1() {
        String[] href1 = {"/lawyer","/new","/contact"};
        String[] name1 = {"专业律师","新闻资讯","联系我们"};
        List<NavModel> list1 = new ArrayList<NavModel>();
        for (int i = 0; i < href1.length; i++) {
            list1.add(NavModel.builder()
                    .href(href1[i])
                    .name(name1[i])
                    .build());
        }
        return list1;
    }


}
